﻿using System;
using System.Collections.Generic;

namespace ARchGL.Platform.FileServer
{
    /// <summary>
    /// 查询项目列表结果
    /// </summary>
    public class ProjectModelInfo
    {
        public ProjectModelInfo()
        {
            Tags = new string[0];
        }
        public Guid Id { get; set; }
        public string Hash { get; set; }
        public string Name { get; set; }
        public string Path { get; set; }
        public string Type { get; set; }
        /// <summary>模型场景标识</summary>
        public Guid ModelGroupId { get; set; }
        /// <summary>模型解析任务标识</summary>
        public Guid TaskId { get; set; }
        /// <summary>
        /// 前端传入的SSO用户标识
        /// </summary>
        public Guid? CreatedUserId { get; set; }
        public string[] Tags { get; set; }
        /// <summary>
        /// 上传状态：true/false
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 转换状态：0未转换、1转换失败、2转换中、3转换成功
        /// </summary>
        public int ConvertStatus { get; set; }
    }

    public class SyncResult
    {
        public SyncItem Item { get; set; }
    }

    public class SyncItem
    {
        public BimTask BimTask { get; set; }
    }

    public class BimTask
    {
        /// <summary>
        /// 调用转换后返回的 task，用于前端去验证转换进度
        /// </summary>
        public Guid TaskId { get; set; }
    }
}
